package com.czwj.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;

import com.czwj.dao.CameraUserMapper;
import com.czwj.entities.CameraUser;
import com.czwj.service.CameraUserService;

/**
* @ClassName: CameraUserServiceImpl
* @Description: TODO
* @author H
* @date 2020年5月19日
*
*/
@Controller
public class CameraUserServiceImpl implements CameraUserService{
	@Resource
	CameraUserMapper mapper;
	/** 
	* 
	* @param item
	* @return
	* @see com.czwj.service.CameraUserService#update(com.czwj.entities.CameraUser)
	*/
	@Override
	public int update(CameraUser item){
		// TODO Auto-generated method stub
		return this.mapper.updateByPrimaryKeySelective(item);
	}
	
	/** 
	* 
	* @param item
	* @return
	* @see com.czwj.service.CameraUserService#insert(com.czwj.entities.CameraUser)
	*/
	@Override
	public int insert(CameraUser item){
		// TODO Auto-generated method stub
		return this.mapper.insertSelective(item);
	}
	
	/** 
	* 
	* @param id
	* @return
	* @see com.czwj.service.CameraUserService#delete(java.lang.Integer)
	*/
	@Override
	public int delete(Integer id){
		// TODO Auto-generated method stub
		return this.mapper.deleteByPrimaryKey(id);
	}

	/** 
	* 
	* @param rpParams
	* @return
	* @see com.czwj.service.CameraUserService#search(java.util.Map)
	*/
	@Override
	public List<CameraUser> search(Map<String,Object> rpParams){
		// TODO Auto-generated method stub
		return this.mapper.search(rpParams);
	}
}
